import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	house_list: apix + '/room/house/list',
	house_export: apix + '/room/house/export',
	room_house: apix + '/room/house',
	// room_house: apix + '/room/house',
	room_houseId: apix + '/room/house/',
	apartment_tenant: apix + '/room/apartment/tenant',
	apartment_mobile_list: apix + '/room/apartment/mobile/list'

}
//查询租房信息列表
export function apartmentMobile_list(obj) {
	return request.get(api.apartment_mobile_list, {
		...obj
	})
}
//查询租房信息列表
export function apartmentTenant() {
	return request.get(api.apartment_tenant)
}
//查询租房信息列表
export function houseList(obj) {
	return request.get(api.house_list, {
		...obj
	})
}
//导出租房信息列表
export function houseExport(obj) {
	return request.post(api.house_export, {
		...obj
	})
}
//获取租房信息详细信息
export function houseId(id) {
	return request.get(api.room_houseId + id)
}
//新增租房信息
export function addhouse(obj) {
	return request.post(api.room_house, {
		...obj
	})
}
//修改租房信息
export function puthouse(obj) {
	return request.put(api.room_house, {
		...obj
	})
}
//删除租房信息
export function delhouse(id) {
	return request.delete(api.room_houseId + id)
}